﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DrugStorehouseMIS.DAL;
using DrugStorehouseMIS.Comm;
using System.Data.SqlClient;
using System.Drawing.Printing;
namespace DrugStorehouseMIS.QueryAndReport
{
    public partial class store_query : Form
    {
        public store_query()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {
           
        }

        private void btnSerach_Click(object sender, EventArgs e)
        {
            //DataTable ta = new DataTable();
            //if (textBox1.Text != "")
            //{
            //    if (radioButton1.Checked)
            //        ta = InventoryDAL.select(textBox1.Text, "");
            //    else if (radioButton2.Checked)
            //        ta  = InventoryDAL.select("", textBox1.Text);

            //}
            //else MessageBox.Show("请输入条件");

            //label3.Text = ta.Rows.Count.ToString() ;
            //dataGridView1.DataSource = ta;
        }

        private void button4_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
           // comboBox1.Text = "";
        }

        private void button3_Click(object sender, EventArgs e)
        {
            new DataGridViewPrint(dataGridView1 ,new PrintDocument ());
            
        }
    }
}